<!DOCTYPE html>
<!--
  Copyright 2018 Google Inc.

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
-->
<html>
  <head>
    <meta charset="utf-8">
    <title>Shape - Material Components Catalog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/png" href="/images/logo_components_color_2x_web_48dp.png">
    <link rel="stylesheet" href="/assets/shape.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <script src="/ready.js"></script>
  </head>
  <body class="mdc-typography">
    <header class="mdc-toolbar mdc-toolbar--fixed">
      <div class="mdc-toolbar__row">
        <section class="mdc-toolbar__section mdc-toolbar__section--align-start">
          <a href="/" class="catalog-back mdc-toolbar__menu-icon"><i class="material-icons">&#xE5C4;</i></a>
          <span class="mdc-toolbar__title catalog-title">Shape</span>
        </section>
      </div>
    </header>

    <main class="mdc-toolbar-fixed-adjust">
      <section class="hero">
        <div class="mdc-shape-container four-corner-container">
          <button class="mdc-button mdc-button--unelevated">Filled Button</button>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-left"></div>
        </div>
        <div class="mdc-shape-container four-corner-container four-corner-container--outlined">
          <button class="mdc-button mdc-button--outlined">Outlined Button</button>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-left"></div>
        </div>
      </section>

      <section class="demo-wrapper">
        <h1 class="mdc-typography--headline3">Button</h1>

        <h2 class="mdc-typography--headline4">Filled</h2>
        <div class="mdc-shape-container two-corner-container">
          <button class="mdc-button mdc-button--unelevated">Skip</button>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
        </div>
        <div class="mdc-shape-container four-corner-container">
          <button class="mdc-button mdc-button--unelevated">Finish</button>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-left"></div>
        </div>

        <h2 class="mdc-typography--headline4">Outlined</h2>
        <div class="mdc-shape-container two-corner-container two-corner-container--outlined">
          <button class="mdc-button mdc-button--outlined">Skip</button>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
        </div>
        <div class="mdc-shape-container four-corner-container four-corner-container--outlined">
          <button class="mdc-button mdc-button--outlined">Finish</button>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-left"></div>
        </div>

        <h1 class="mdc-typography--headline3">Card</h1>

        <div class="mdc-shape-container card-container">
          <div class="mdc-card mdc-card--outlined demo-card">
            <a class="mdc-card__primary-action demo-card__primary-action" href="#">
              <div class="demo-card__row">
                <div class="mdc-card__media mdc-card__media--square demo-card__media"></div>
                <div class="demo-card__info">
                  <div class="mdc-typography--headline5">Title</div>
                  <div class="mdc-typography--body2">Body text</div>
                </div>
              </div>
            </a>
          </div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-left"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--top-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-right"></div>
          <div class="mdc-shape-container__corner mdc-shape-container__corner--bottom-left"></div>
        </div>
      </section>
    </main>

    <script src="/assets/material-components-web.js" async></script>
    <script src="/assets/common.js" async></script>
    <script>
      demoReady(function() {
        // Attach ripples to demonstrate corner masking
        [].forEach.call(document.querySelectorAll('.mdc-button, .mdc-card__primary-action'), function(surface) {
          mdc.ripple.MDCRipple.attachTo(surface);
        });
      });
    </script>
  </body>
</html>
